Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding jenkins job for maintainer tool #2068

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

deepalik21
Copy link

Signed-off-by: Deepali Kasture [email protected]

@ceph-jenkins
Copy link

Can one of the admins verify this patch?

Comment on lines 3 to 5
cat > maintainer-tool.py
mkdir maintainer-tool
cd maintainer-tool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these lines here? What are they for?

Comment on lines 7 to 13
cd ceph-maintainer-tool
cp maintainer-tool.py ../../maintainer-tool.py
rm -rf .git*
cd ..
rmdir -r ceph-maintainer-tool
cd ..
rmdir maintainer-tool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you doing all this moving things around?

rmdir -r ceph-maintainer-tool
cd ..
rmdir maintainer-tool
python maintainer-tool.py src/pybind/mgr/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the scanned repo coming from?

block-upstream: false
scm:
- git:
url: [email protected]:ceph/ceph.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this job will only be scanning ceph?
Seems like it makes this job less flexible. Is that what you want?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My approach was to clone the maintainer tool repo and to get the script and run it against the ceph repo.
To test it on my local machine I tried to get this approach.
If there is any other suggestion could you please let me know.

@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from ce5174d to ddfd63e Compare September 19, 2022 17:19
TEMPVENV=$(create_venv_dir)
VENV=${TEMPVENV}/bin

source $VENV/activate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think we need to source the venv, and when I tried to execute this on the jenkins, it failed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed source venv.

Comment on lines 45 to 46
- ../../../scripts/build_utils.sh
- ../../build/build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need this file to be in config/definitions/, and then this relative pathing should work

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from ddfd63e to 07ed446 Compare September 23, 2022 14:33
@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from 07ed446 to 6461f5e Compare September 23, 2022 14:41
@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from 80293e4 to f8335db Compare October 28, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants